local UIBase = require("view.UIBase")
local SkillShowName = class("SkillShowName", UIBase)

function SkillShowName:ctor(name)
    self._name = name
    local resource = {
        path = "Prefabs/Popup",
        name = "SkillNameShow",
        canvas = 1
    }
    SkillShowName.super.ctor(self, resource)
end

function SkillShowName:start()
    self._textName.text = self._name
    local fade = self._textName:DOFade(0, 2)
    local sequence = DOTween.Sequence()
    sequence:Append(fade)
    sequence:AppendCallback(handler(self, self.close))
end

return SkillShowName
